﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/HomeMaster.Master" AutoEventWireup="true"
    CodeBehind="List.aspx.cs" Inherits="CSP.Web.MyHome.Activity.CollectBusinessInfo.List" %>

<asp:Content ID="CSPHead" ContentPlaceHolderID="CSPHead" runat="server">
    <meta charset="utf-8">
    <title>有奖活动-推荐商家-信然贷网</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
</asp:Content>
<asp:Content ID="CSPStyleAndScript" ContentPlaceHolderID="CSPStyleAndScript" runat="server">
    <link href="/Styles/lib/jquery-ui/jquery-ui-1.8.22.custom.css" rel="stylesheet" type="text/css" />
    <link href="/Styles/lib/jquery-ui/jquery.ui.button.css" rel="stylesheet" type="text/css" />
    <script src="/Scripts/UI/Jquery/jquery.ui.core.js" type="text/javascript"></script>
    <script src="/Scripts/UI/Jquery/jquery.ui.widget.min.js" type="text/javascript"></script>
    <script src="/Scripts/UI/Jquery/jquery.ui.position.min.js" type="text/javascript"></script>
    <script src="/Scripts/UI/Jquery/jquery.ui.dialog.js" type="text/javascript"></script>
    <script src="/Scripts/UI/Expand/dialog.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="CSPCrumbs" ContentPlaceHolderID="CSPCrumbs" runat="server">
    <!--面包屑Crumbs-->
    <div class="crumbs">
        <span>您当前所在的位置：</span> <a href="/">首页</a> &gt; <a href="/MyHome/Account/Management.aspx">
            可参与的活动</a> &gt; <span>推荐机构</span>
    </div>
</asp:Content>
<asp:Content ID="CSPRight" ContentPlaceHolderID="CSPRight" runat="server">
    <div class="pr10">
        <div class="pr10 mh500">
            <div class="tabs tabs-home mt10">
                <div class="tabs-nd">
                    <ul class="tabs-hd">
                        <li class="trigger current">推荐机构活动</li>
                    </ul>
                </div>
                <div class="tabs-bd order">
                    <div class="tabs-panel">
                    <br />
                    <span style="color:Green"><strong>温馨提示：</strong></span><br /><br /><div><span style="color:Red">推荐一条北京少儿服务培训机构的信息即可获得<strong>1-10元</strong>的奖励，更有机会获得<strong>小米2手机一部</strong>。信息越完善回报几率越大。每条信息会经过我们人工审核请认真填写哦^_^。</span></div>
                    <br /><br /><div style="text-align:right"><a href="Add.aspx" class="ui-btn-big sl-rc"><span class="sl-rc-cnt">+推荐机构</span></a></div>
                        <div class="thead mt10">
                            <asp:DropDownList ID="S_Status" runat="server" AutoPostBack="true" OnSelectedIndexChanged="S_Status_SelectedIndexChanged">
                                <asp:ListItem Value="0" Text="审核"></asp:ListItem>
                                <asp:ListItem Value="1" Text="审核通过"></asp:ListItem>
                                <asp:ListItem Value="2" Text="审核失败"></asp:ListItem>
                            </asp:DropDownList>
                            <span class="order-search fr">
                                <input id="Txt_SearchValue" runat="server" type="text" class="text" placeholder="输入机构名称">
                                <input id="Submit1" type="submit" runat="server" onserverclick="Btn_Search_Click"
                                    class="submit" value="查询">
                            </span> </p>
                        </div>
                        <!--thead-->
                        <table class="table-style mtb15" width="100%" border="0" cellspacing="0" cellpadding="0">
                            <colgroup>
                                <col width="100">
                                <col width="210">
                                <col width="130">
                                <col width="120">
                                <col width="90">
                                <col width="80">
                                <col width="60">
                            </colgroup>
                            <thead>
                                <tr>
                                    <th scope="col">
                                        序号
                                    </th>
                                    <th align="left" scope="col">
                                        服务机构名称
                                    </th>
                                    <th align="left" scope="col">
                                        服务电话/手机
                                    </th>
                                    <th align="center" scope="col">
                                        审核状态
                                    </th>
                                    <th scope="col">
                                        审核原因
                                    </th>
                                    <th scope="col">
                                        奖励费用
                                    </th>
                                    <th scope="col">
                                        操作
                                    </th>
                                </tr>
                            </thead>
                            <tbody>
                                <asp:Repeater ID="R_CollectBusinessInfo" ViewStateMode="Disabled" runat="server">
                                    <HeaderTemplate>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <tr class="bg">
                                            <td height="80" align="center">
                                                <%#Eval("Id") %>
                                            </td>
                                            <td>
                                                <h3 class="title">
                                                    <a href="/MyHome/Activity/CollectBusinessInfo/Detail.aspx?id=<%#Eval("Id") %>">
                                                        <%#Eval("Name") %></a></h3>
                                            </td>
                                            <td>
                                                <p class="company-name">
                                                    <%#Eval("Phone")%>|<%#Eval("Mobile")%></p>
                                            </td>
                                            <td align="center">
                                                <%#GetNameByStatus(Convert.ToInt32(Eval("Status")).ToString())%>
                                            </td>
                                            <td align="center" class="price">
                                                <%#Eval("Reason")%>
                                            </td>
                                            <td align="center">
                                                <%#Eval("Bonus")%>
                                            </td>
                                            <td align="center" class="operate">
                                                <div style="display: <%#IsShowOperate(Convert.ToString(Eval("UserName")),Convert.ToInt32(Eval("Status")))%>">
                                                    <br>
                                                    <a href="Modify.aspx?id=<%#Eval("Id") %>">编辑</a><br>
                                                    <a href="javascript:DeleteInfo(<%#Eval("Id") %>);">删除</a>
                                                </div>
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                    <FooterTemplate>
                                    </FooterTemplate>
                                </asp:Repeater>
                                <tr>
                                    <td colspan="4" style="text-align: center">
                                    <br />
                                        <asp:Label ID="LB_Empty" runat="server" Text=""><%=R_CollectBusinessInfo.Items.Count == 0 ? "您还未推荐任何机构，赶快参与活动哦^_^" : ""%></asp:Label>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        <!-- {{{ pagination -->
                        <CSP_U:CSPPager ID="U_CollectBusinessInfoPager" OnIndexChange="U_CollectBusinessInfo_IndexChange"
                            runat="server" />
                        <!-- pagination }}} -->
                    </div>
                </div>
                <!--tabs-panel-->
            </div>
            <!--tabs-bd-->
        </div>
        <!--tabs-->
    </div>
</asp:Content>
